<?php
    class sscls_CustommerModel extends sscls_Model
    {   

        function __construct()
        {
            parent::__construct();
        }
       function getCus()
	   {
			$query='select * from custommer';
					
			return $this->_db->loadObjectList($query);
	   }
	   
		function getCategories()
		
		{
			$query='select * from categories';
			return $this->_db->loadObjectList($query);
			
		}
		
		function getCustomer($ids)
		{
			return $this->_db->loadObjectList('select * from custommer where id in ('.$ids.') ');
		}
	   function getArticles()
	   {
		return $this->_db->loadObjectList('select * from article ');
	   }
	   
	   function getArticle($id)
	   {
		return $this->_db->loadObject('select * from article where id='.(int)$id);
	   }
	   
	   function store1($data,$tablename)
	   {
			$result=$this->store($data,$tablename);
			return $result;
	   }
	   
	   function getItem($id)
	   {
			return $this->_db->loadObject('select * from custommer where id='.$id);
	   }
	   
	   function remove($ids)
	   {
		$sql='delete from custommer where id in ('.$ids.')';
		return $this->_db->query($sql);
	   }
    }
?>
